﻿Public Class Form24y7

    'Private Sub Form24y7_Activated(sender As Object, e As EventArgs) Handles Me.Activated
    '    Me.setPhanQuyen(True, True, True, GetPhanQuyenManHinh_FormDoi_ChiTiet_DanhSachTableAdapter.GetData(Me.Tag))
    'End Sub

    Private Sub Form24y7_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        'TODO: This line of code loads data into the 'PCV_GDPDataSet.BH_BanHangThue' table. You can move, or remove it, as needed.
        Me.BH_BanHangThueTableAdapter.Fill(Me.PCV_GDPDataSet.BH_BanHangThue)
        'TODO: This line of code loads data into the 'PCV_GDPDataSet.BH_BanHangChiTiet' table. You can move, or remove it, as needed.
        Me.BH_BanHangChiTietTableAdapter.Fill(Me.PCV_GDPDataSet.BH_BanHangChiTiet)
        'TODO: This line of code loads data into the 'PCV_GDPDataSet.BH_BanHang' table. You can move, or remove it, as needed.
        Me.BH_BanHangTableAdapter.Fill(Me.PCV_GDPDataSet.BH_BanHang)
        Me.setPhanQuyen(True, True, True, GetPhanQuyenManHinh_FormDoi_ChiTiet_DanhSachTableAdapter.GetData(Me.Tag))
    End Sub

    Public Sub New()
        Me.IGridViewDsThamChieu1.setColumnCheck()
        'Me.IGridViewDsThamChieu2.setColumnCheck()
        InitializeComponent()
        Me.setSoTabThamChieu(3)
        Me.setSoTab(2)
        Me.setObj(Me.PCV_GDPDataSet, Me.PCV_GDPDataSet.BH_BanHang, Me.BH_BanHangBindingSource, Me.TableAdapterManager, Me.BH_BanHangTableAdapter, Me.ManghiepvuITextEdit, Me.SochungtuITextEdit)
        Me.setTab1(Me.PCV_GDPDataSet.BH_BanHangChiTiet, Me.FKBHBanHangChma793DFFAFBindingSource, Me.BH_BanHangChiTietTableAdapter)
        Me.setColumnsChangeTab1(New ArrayList From {"soluonggiao", "dongiavnd", "tilethuegtgt", "tienthuegtgt"})
        Me.setColumnValueTab1(Me.colEx1ChiTiet01, Me.colthanhtienvnd)
        Me.setColumnValueTab1(Me.colEx2ChiTiet01, Me.coltienthuegtgt)
        Me.IGridViewChiTiet01.setBatLoi("soluonggiao", "not 0 and not null")
        Me.IGridViewChiTiet01.setBatLoi("giaban", "not 0 and not null")
    End Sub

End Class
